package com.igl.talk.android.client.core.service;/*
 * @author Adam Wieczorek 
 *
 * 16/03/2014
 *
 * All rights reserved.
 */

import android.content.ServiceConnection;
import com.igl.talk.android.client.ide.models.IdeMessageModel;

import java.util.List;

public interface ServerApi{

    public boolean register(String username);

    public List<IdeMessageModel> getMessages(int index1, int index2);

    public boolean sendMessage(IdeMessageModel ideMessageModel);

    public boolean logout();

    public ServiceConnection getConnection();

    public boolean isConnectionActive();

    public void closeConnection();

}
